import csv
with open('C:\Users\LoveP\Desktop\pima-indians-diabetes.data.csv', mode='rb') as csvfile:
    spamreader = csv.reader(csvfile)
    dataset = list(spamreader)
    for data in dataset:
        #print data
        mylist = [float(x) for x in range(10)]
        print mylist
    